package com.yanyi.music.service.impl;

import com.yanyi.music.dao.SongMapper;
import com.yanyi.music.domain.Song;
import com.yanyi.music.service.SongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SongServiceImpl implements SongService {
    @Autowired
    private SongMapper songMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return songMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Song record) {
        return songMapper.insert(record);
    }

    @Override
    public int insertSelective(Song record) {
        return songMapper.insertSelective(record);
    }

    @Override
    public Song selectByPrimaryKey(Integer id) {
        return songMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Song record) {
        return songMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(Song record) {
        return songMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(Song record) {
        return songMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Song> findAll(Map<String, Object> map) {
        return songMapper.findAll(map);
    }
}
